/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsTestEnterListEntity;
import com.j2eefast.produce.pms.entity.PmsTestEntity;
import com.j2eefast.produce.pms.entity.PmsTestProjectEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>检验录入列表</p>
 *
 * @author: summer
 * @date: 2021-05-29 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsTestEnterListMapper extends BaseMapper<PmsTestEnterListEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);
	public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
	//查询用户信息
	public SysUserEntity getSysById(@Param("userId") Long userId);

	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsTestEnterListEntity> findPage(IPage<?> params,
                                         @Param("testType") String testType,
                                         @Param("testName") String testName,
										  @Param("type") String type,
										  @Param("chargeProject") String chargeProject,
										  @Param("quantity") String quantity,
										  @Param("batch") String batch,
										  @Param("producer") String producer,
										  @Param("partUsed") String partUsed,
										  @Param("sampleDescription") String samepleDescription,
										  @Param("beginTime") String beginTime,
										  @Param("endTime") String endTime,
										  @Param("testType2") String testType2,
										  @Param("type2") String type2,
                                        @Param("sql_filter") String sql_filter);

	List<PmsTestEnterListEntity> findList(IPage<?> params,
										  @Param("testType") String testType,
										  @Param("testName") String testName,
										  @Param("producer") String producer,
										  @Param("partUsed") String partUsed,
//										  @Param("registrationTime") String registrationTime,
										  @Param("sql_filter") String sql_filter);


	//查询所有数据
	Page<PmsTestEnterListEntity> selectList(IPage<?> params,
//                                         @Param("sample_code") String sampleCode,
//                                         @Param("sample_type") String sampleType,
											@Param("sql_filter") String sql_filter);

}
